package com.ruoyix.weblog.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "videostorage")
public class VideoStorageConfig {
    private UploadPath uploadPath;
    private VideoConfig video;

    @Data
    public static class UploadPath {
        private String windows;
        private String linux;
    }

    @Data
    public static class VideoConfig {
        private String tempDir;
        private String storageDir;
        private String m3u8Dir;
        private EncKeyInfo encKeyinfo;
    }

    @Data
    public static class EncKeyInfo {
        private String windows;
        private String linux;
    }
}
